<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <!--
    <link href="../static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="../static/bootstrap/css/docs.css" rel="stylesheet" type="text/css"/>
    -->
   <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>
   <link href="/static/viewback/css/mycss.css" rel="stylesheet" type="text/css"/>
   <title>版块增加</title>
</head>
<body>
<div class="header"></div>
<include file="public:header"/>
<ul class="breadcrumb">
    <li>
      <a href="/Admin/user/userList" title="后台管理"><i class="icon-home"></i></a> <span class="divider">/</span>
    </li>
    <li>
      <a href="/Admin/forum/forumList" title="板块管理">版块管理</a> <span class="divider">/</span>
    </li>
    <li class="active" title="板块增加">版块增加</li>
 </ul>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span2">
                <include file="public:leftbar"/>
            </div>
            <div class="span10">
                <div class="">
                    <fieldset>
                        <legend><h3>版块增加</h3></legend>
                        <form class="form-horizontal" action="/Admin/forum/createParentForum" method="post">
                            <div class="control-group">
                                <label class="control-label" for="parent-forum-input">创建父版块</label>
                                <div class="controls">
                                    <input name="forum_name" type="text" class="span4" placeholder="非必填项目" id="parent-forum-input" required/>
                                    <input type="submit" value="创建" class="btn btn-primary"/>&nbsp;{$flag}
                                </div>
                            </div>
                        </form>
                        <form class="form-horizontal" action="/Admin/forum/addSave" method="post">
                            <div class="control-group">
                                <label class="control-label" for="parent-forum-name">选择现有父版块</label>
                                <div class="controls" for="parent-forum">
                                    <select name="parent_forum" id="parent-forum">
                                        <option  value="">
                                            —选择父版块—
                                        </option>
                                        <volist name="parentForum" id="parent">
                                            <option value="{$parent.id}-{$parent.forum_name}">{$parent.forum_name}</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            <div class="control-group">
                                 <label class="control-label" for="forum-name">版块名称</label>
                                <div class="controls">
                                    <input id="forum-name" name="forum_name" type="text" class="span4" required/>
                                </div>
                            </div>
                            <div class="form-actions">
                                <input type="submit" value="确认提交" class="btn btn-primary"/>&nbsp;{$msg}
                            </div>
                         </form>
                    </fieldset>
                </div>
            </div>
        </div>
</div>
<div class="footer"></div>
<include file="public:footer"/>
<script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="/static/viewback/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
      
    });
</script>
</body>
</html>

